﻿<Window x:Class="WpfApplication2.CreateDeployWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Create Deploy" Height="366" Width="569" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
    <Window.Resources>
        
            <Storyboard x:Key="StartBusy" RepeatBehavior="Forever">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Layer_1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                    <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="45"/>

                    <SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="45"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="90"/>

                    <SplineDoubleKeyFrame KeyTime="00:00:00.9000000" Value="90"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:00.9000000" Value="135"/>

                    <SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="135"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="180"/>

                    <SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="180"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:01.5000000" Value="225"/>

                    <SplineDoubleKeyFrame KeyTime="00:00:01.8000000" Value="225"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:01.8000000" Value="270"/>

                    <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="270"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="315"/>

                    <SplineDoubleKeyFrame KeyTime="00:00:02.4000000" Value="315"/>
                    <SplineDoubleKeyFrame KeyTime="00:00:02.4000000" Value="0"/>

                </DoubleAnimationUsingKeyFrames>

                <Int32AnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border2_Copy" Storyboard.TargetProperty="(Panel.ZIndex)">
                    <SplineInt32KeyFrame KeyTime="00:00:00" Value="1"/>
                    <SplineInt32KeyFrame KeyTime="00:00:02.4000000" Value="1"/>
                </Int32AnimationUsingKeyFrames>
            </Storyboard>

            <Storyboard x:Key="StopBusy">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Layer_1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                    <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                </DoubleAnimationUsingKeyFrames>

                <Int32AnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="border2_Copy" Storyboard.TargetProperty="(Panel.ZIndex)">
                    <SplineInt32KeyFrame KeyTime="00:00:00" Value="0"/>
                </Int32AnimationUsingKeyFrames>
            </Storyboard>
        
    </Window.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="170" />
            <ColumnDefinition Width="484*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="36"></RowDefinition>
            <RowDefinition Height="25"></RowDefinition>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition Height="36" />
            <RowDefinition Height="50" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="61*" />
           
            
        </Grid.RowDefinitions>
        <Border Background="{StaticResource PopupWindowHeaderBarBackground}" Grid.ColumnSpan="2" >
            <Grid Margin="2,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="30"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="30"/>
                </Grid.ColumnDefinitions>

                <TextBlock x:Name="TextBlockTitleName" Grid.Column="0" Grid.ColumnSpan="2" Text="Create Deploy"   VerticalAlignment="Center"  Margin="5,0,0,0"  Foreground="White" FontSize="12" />
            </Grid>
        </Border>

        <!--<TextBlock Grid.Row="1" Text="Staging Deployment" x:Name="TextBoxDeploymentName" VerticalAlignment="Bottom" Margin="5,0,80.38,5" Height="15.96"></TextBlock>-->

        <TextBlock Grid.Row="2" Text="Name :" HorizontalAlignment="Right" VerticalAlignment="Center" ></TextBlock>
        <TextBlock Grid.Row="3" Text="Application Package Url :" HorizontalAlignment="Right" Margin="0,12.02,0,8.02" Width="131.67"></TextBlock>
        <TextBlock Grid.Row="4" Grid.Column="1" Width="350" HorizontalAlignment="Left" Margin="5,0,0,0" TextWrapping="Wrap">Application Package Url is the Url of package(*.cspkg) hosted in Azure Blob Storage. You can use
     <Hyperlink RequestNavigate="HandleRequestNavigate" Name="hl" NavigateUri="http://www.cerebrata.com/?r=ashm" >Cloud Storage Studio
    </Hyperlink> to upload your application package.
        </TextBlock>

        <TextBlock Grid.Row="5" Text="Application Configuration file :" HorizontalAlignment="Right" VerticalAlignment="Center" ></TextBlock>
        <TextBlock Grid.Row="6" Text="Label :" HorizontalAlignment="Right" VerticalAlignment="Center" ></TextBlock>
        
        <TextBox Grid.Row="2" Grid.Column="1" x:Name="TextBoxDeployName" Width="250" Height="25" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBox>
        

        <TextBox Grid.Row="3" Grid.Column="1" x:Name="TextBoxPkgUrl" Width="250" HorizontalAlignment="Left" Margin="5,7.5,0,3.5" ></TextBox>
        <TextBox Grid.Row="6" Grid.Column="1" x:Name="TextBoxLabel" Width="250" Height="25" HorizontalAlignment="Left" Margin="5" ></TextBox>
        






        <StackPanel Grid.Row="5" Grid.Column="1" Orientation="Horizontal">
            <TextBox x:Name="TextBoxConfigFileLocation" Width="250" Height="25" Margin="5" ></TextBox>
            <Button Content="_Browse..." x:Name="BtnBrowse" Width="90" Height="25" Margin="5" Click="BtnBrowse_Click"></Button>

        </StackPanel>



        <!--<StackPanel Grid.Row="6" Grid.Column="1" HorizontalAlignment="Right" Orientation="Horizontal" Grid.ColumnSpan="2" Margin="0,0,5,0">
            <Button Content="Deploy" Width="90" x:Name="BtnDeploy" Height="25" Click="BtnDeploy_Click"></Button>
            <Button Content="cancel" Width="90" x:Name="BtnCancel1" Click="BtnCancel_Click" Height="25" Margin="5" ></Button>
        </StackPanel>-->

        <Border Background="{StaticResource ThickBottomBar1}" Grid.Row="7" Grid.ColumnSpan="2" >
            <Border Background="{StaticResource ThickBottomBar2}">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition></ColumnDefinition>
                        <ColumnDefinition Width="110"></ColumnDefinition>
                        <ColumnDefinition Width="110"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Button Content="_Deploy..." Grid.Column="1" Width="90" x:Name="BtnDeploy" Height="25" Click="BtnDeploy_Click"></Button>
                    <Button Content="_Cancel" Grid.Column="2" Width="90" x:Name="BtnCancel1" Click="BtnCancel_Click" Height="25" Margin="5" ></Button>

                </Grid>
            </Border>
        </Border>

        <Border BorderThickness="1,1,5,5" BorderBrush="{x:Null}" CornerRadius="5,5,5,5" x:Name="border2_Copy"
                RenderTransformOrigin="0.5,0.5" Opacity="0.5" Background="#FFFFFFFF" Panel.ZIndex="0" Grid.RowSpan="8" Grid.ColumnSpan="2" Visibility="Collapsed">
            <Border.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="0"/>
                    <TranslateTransform X="0" Y="0"/>
                </TransformGroup>
            </Border.RenderTransform>
            <Canvas x:Name="Layer_1" Width="157" Height="157" Canvas.Left="0" Canvas.Top="0" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Opacity="0.995">
                <Canvas.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="0"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0"/>
                    </TransformGroup>
                </Canvas.RenderTransform>
                <Canvas Width="156.165" Height="156.167">
                    <Path x:Name="Path" Width="16.6243" Height="62.2988" Canvas.Left="69.6029" Canvas.Top="1.52588e-005" Stretch="Fill" Fill="#FF60C3FE" Data="F1 M 86.2271,31.4012C 86.2271,18.4445 82.8743,6.98193 77.7339,1.52588e-005C 72.7987,7.02213 69.6029,18.2478 69.6029,30.8977C 69.6029,43.8544 72.9556,55.3169 78.0961,62.2988C 83.0313,55.2767 86.2271,44.0511 86.2271,31.4012 Z "/>
                    <Path x:Name="Path_0" Width="43.7936" Height="44.3102" Canvas.Left="89.253" Canvas.Top="22.6206" Stretch="Fill" Fill="#FF4ABBFF" Data="F1 M 116.85,50.831C 126.011,41.6687 131.745,31.1925 133.047,22.6206C 124.592,24.0967 114.394,29.7751 105.45,38.7204C 96.2887,47.8826 90.5548,58.3589 89.253,66.9308C 97.7081,65.4547 107.905,59.7763 116.85,50.831 Z "/>
                    <Path x:Name="Path_1" Width="62.298" Height="16.6255" Canvas.Left="93.8675" Canvas.Top="69.5108" Stretch="Fill" Fill="#FF33B2FE" Data="F1 M 124.781,86.1362C 137.738,86.1108 149.194,82.7356 156.165,77.5816C 149.134,72.6601 137.902,69.4862 125.252,69.511C 112.295,69.5364 100.839,72.9116 93.8675,78.0657C 100.899,82.9871 112.131,86.161 124.781,86.1362 Z "/>
                    <Path x:Name="Path_2" Width="44.3958" Height="43.7068" Canvas.Left="89.2574" Canvas.Top="89.2317" Stretch="Fill" Fill="#FF00A0FF" Data="F1 M 105.411,116.797C 114.591,125.94 125.079,131.654 133.653,132.938C 132.161,124.486 126.462,114.3 117.499,105.373C 108.319,96.23 97.8317,90.5166 89.2574,89.2317C 90.75,97.6838 96.4484,107.87 105.411,116.797 Z "/>
                    <Path x:Name="Path_3" Width="16.6234" Height="62.2996" Canvas.Left="69.8085" Canvas.Top="93.8679" Stretch="Fill" Fill="#FFD5EFFF" Data="F1 M 69.8088,124.743C 69.7727,137.699 73.0935,149.171 78.2145,156.167C 83.1692,149.159 86.3963,137.942 86.4316,125.293C 86.4676,112.336 83.1468,100.864 78.0258,93.8679C 73.0711,100.876 69.844,112.093 69.8088,124.743 Z "/>
                    <Path x:Name="Path_4" Width="43.9168" Height="44.1881" Canvas.Left="22.9649" Canvas.Top="89.2049" Stretch="Fill" Fill="#FFB8E4FF" Data="F1 M 39.2404,105.228C 30.0536,114.365 24.2905,124.825 22.9649,133.393C 31.424,131.94 41.6371,126.29 50.6063,117.37C 59.7931,108.233 65.5562,97.7731 66.8818,89.2049C 58.4227,90.6575 48.2096,96.3075 39.2404,105.228 Z "/>
                    <Path x:Name="Path_5" Width="62.2993" Height="16.626" Canvas.Left="7.7486e-007" Canvas.Top="69.4623" Stretch="Fill" Fill="#FF98D8FF" Data="F1 M 31.4857,69.4662C 18.5296,69.3348 7.0337,72.5711 7.7486e-007,77.6404C 6.97171,82.6466 18.1644,85.9562 30.8136,86.0845C 43.7697,86.2159 55.2656,82.9795 62.2993,77.9102C 55.3276,72.904 44.1349,69.5945 31.4857,69.4662 Z "/>
                    <Path x:Name="Path_6" Width="43.8637" Height="44.2408" Canvas.Left="23.1804" Canvas.Top="22.5599" Stretch="Fill" Fill="#FF7ACDFF" Data="F1 M 51.2251,39.0422C 42.1562,29.7884 31.7387,23.9485 23.1804,22.5599C 24.5707,31.0295 30.1454,41.2838 38.9995,50.3185C 48.0684,59.5723 58.486,65.4122 67.0442,66.8007C 65.6539,58.3312 60.0792,48.0768 51.2251,39.0422 Z "/>
                </Canvas>
            </Canvas>
        </Border>





    </Grid>
</Window>
